package com.sanploy.wechat.util;

import okhttp3.Response;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

/**
 * Created by zhu yingzhi on 2017/9/21.
 */
public interface RetrofitService {

//    @GET("sns/jscode2session?appid={appid}&secret={secret}&js_code={code}&grant_type=authorization_code")
    @GET("/sns/jscode2session")
    Call<ResponseBody> userLogin(@Query("appid") String appid, @Query("secret") String secret,
                                 @Query("js_code") String code,@Query("grant_type") String grant_type);

//
    @Headers({"Content-type:application/xml"})
    @POST("/pay/unifiedorder")
    Call<ResponseBody> unifiedOrder(@Body String xml);
}
